public class dayingji {
//    设计一个方法打印n到m之间所有奇数
    public static void main(String[] args) {
        daying(1,10);
        System.out.println("--------");
        daying(20,30);

    }
    protected static void daying(int n,int m){
        for (int i = n; i <m; i++) {
            if(i%2!=0){
                System.out.println(i);
            }

        }

    }
}
